
const getCodes = (req, res) => {
    res.json(
            {
                "success": true,
                "errorCode": "1000",
                "errorMessage":"",
                "ts":1591152123000,
                "data": [
                    {
                        "id": 1,
                        "dictCode": "yesNo",
                        "codeLabel": "是",
                        "codeValue": "1",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 2,
                        "dictCode": "yesNo",
                        "codeLabel": "否",
                        "codeValue": "0",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 3,
                        "dictCode": "regionScope",
                        "codeLabel": "养老院",
                        "codeValue": "1",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 4,
                        "dictCode": "regionScope",
                        "codeLabel": "养老社区",
                        "codeValue": "2",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 5,
                        "dictCode": "regionScope",
                        "codeLabel": "普通社区",
                        "codeValue": "3",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 6,
                        "dictCode": "regionScope",
                        "codeLabel": "快捷酒店",
                        "codeValue": "4",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 9,
                        "dictCode": "regionType",
                        "codeLabel": "养老院",
                        "codeValue": "1",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 10,
                        "dictCode": "regionType",
                        "codeLabel": "院区",
                        "codeValue": "2",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 11,
                        "dictCode": "regionType",
                        "codeLabel": "楼宇",
                        "codeValue": "3",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 12,
                        "dictCode": "regionType",
                        "codeLabel": "楼区",
                        "codeValue": "4",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 13,
                        "dictCode": "regionType",
                        "codeLabel": "楼层",
                        "codeValue": "5",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 14,
                        "dictCode": "regionType",
                        "codeLabel": "层区",
                        "codeValue": "6",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 15,
                        "dictCode": "regionType",
                        "codeLabel": "房间",
                        "codeValue": "7",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 16,
                        "dictCode": "regionType",
                        "codeLabel": "房间区",
                        "codeValue": "8",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 17,
                        "dictCode": "regionType",
                        "codeLabel": "床位",
                        "codeValue": "9",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 18,
                        "dictCode": "regionType",
                        "codeLabel": "其它",
                        "codeValue": "0",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 7,
                        "dictCode": "sex",
                        "codeLabel": "男",
                        "codeValue": "1",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 8,
                        "dictCode": "sex",
                        "codeLabel": "女",
                        "codeValue": "2",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 19,
                        "dictCode": "networkMode",
                        "codeLabel": "WIFI",
                        "codeValue": "1",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 20,
                        "dictCode": "networkMode",
                        "codeLabel": "Zigbee",
                        "codeValue": "2",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 21,
                        "dictCode": "productStatus",
                        "codeLabel": "开发中",
                        "codeValue": "0",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 22,
                        "dictCode": "productStatus",
                        "codeLabel": "已发布",
                        "codeValue": "1",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 23,
                        "dictCode": "protocol",
                        "codeLabel": "MQTT",
                        "codeValue": "1",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 24,
                        "dictCode": "protocol",
                        "codeLabel": "TCP",
                        "codeValue": "2",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 25,
                        "dictCode": "dataFormat",
                        "codeLabel": "JSON",
                        "codeValue": "1",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 26,
                        "dictCode": "dataFormat",
                        "codeLabel": "数据流",
                        "codeValue": "2",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 27,
                        "dictCode": "deviceStatus",
                        "codeLabel": "未激活",
                        "codeValue": "0",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 28,
                        "dictCode": "deviceStatus",
                        "codeLabel": "在线",
                        "codeValue": "1",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 29,
                        "dictCode": "deviceStatus",
                        "codeLabel": "离线",
                        "codeValue": "2",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 30,
                        "dictCode": "deviceStatus",
                        "codeLabel": "已禁用",
                        "codeValue": "3",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 31,
                        "dictCode": "useStatus",
                        "codeLabel": "停用",
                        "codeValue": "1",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                    {
                        "id": 32,
                        "dictCode": "useStatus",
                        "codeLabel": "启用",
                        "codeValue": "2",
                        "codeSort": 0,
                        "createTime": 1591152123000,
                        "lastModifyTime": 1591152123000,
                        "isActive": true
                    },
                ]
            })
}
export default {
    'GET /api/dict/code/all': getCodes,
  };